home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Custom
- Caption = "Custom Address SAMPLE"
- ClientHeight = 3420
- ClientLeft = 1185
- ClientTop = 2100
- ClientWidth = 6885
- Height = 3795
- Left = 1140
- LinkTopic = "Form1"
- ScaleHeight = 3420
- ScaleWidth = 6885
- Top = 1770
- Width = 6975
- Begin VB.CommandButton Command2
- Caption = "Send Messages without UI && Custom Address"
- Height = 495
- Left = 360
- TabIndex = 7
- Top = 2640
- Width = 4455
- End
- Begin VB.TextBox szNoteText
- Height = 375
- Left = 1200
- TabIndex = 6
- Text = "The NotePart"
- Top = 2040
- Width = 5175
- End
- Begin VB.TextBox szSubject
- Height = 375
- Left = 1200
- TabIndex = 4
- Text = "The Subject"
- Top = 1440
- Width = 5175
- End
- Begin VB.TextBox szAddress
- Height = 375
- Left = 1200
- TabIndex = 2
- Text = "Joe@abc.com at Internet"
- Top = 840
- Width = 5175
- End
- Begin VB.CommandButton Command1
- Caption = "Login cc:Mail"
- Height = 375
- Left = 360
- TabIndex = 0
- Top = 240
- Width = 2175
- End
- Begin Mailx16Lib.MForm MForm1
- Left = 1560
- Top = 3120
- _Version = 65542
- _ExtentX = 6165
- _ExtentY = 500
- _StockProps = 0
- MXFormName = "FormTag1"
- End
- Begin Mailx16Lib.MSess MSess1
- Left = 4920
- Top = 2520
- _Version = 65542
- _ExtentX = 900
- _ExtentY = 900
- _StockProps = 0
- Mail_Type = 2
- DownLoadMsg = 0 'False
- End
- Begin Mailx16Lib.MMsg MMsg1
- Left = 5520
- Top = 2520
- _Version = 65542
- _ExtentX = 900
- _ExtentY = 900
- _StockProps = 0
- DisplaySendDialog= 0 'False
- BindString = "MSess1"
- End
- Begin Mailx16Lib.MReci MReci1
- Left = 6120
- Top = 2520
- _Version = 65542
- _ExtentX = 900
- _ExtentY = 900
- _StockProps = 0
- BindString = "MMsg1"
- End
- Begin VB.Label Label4
- Caption = "Enter a Recipient Address using the complete Format"
- Height = 495
- Left = 2640
- TabIndex = 8
- Top = 240
- Width = 3975
- End
- Begin VB.Label Label3
- Caption = "NoteText:"
- Height = 255
- Left = 360
- TabIndex = 5
- Top = 2160
- Width = 735
- End
- Begin VB.Label Label2
- Caption = "Subject:"
- Height = 255
- Left = 360
- TabIndex = 3
- Top = 1560
- Width = 735
- End
- Begin VB.Label Label1
- Caption = "Address:"
- Height = 255
- Left = 360
- TabIndex = 1
- Top = 960
- Width = 735
- End
- Attribute VB_Name = "Custom"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- MSess1.Logon = True
- End Sub
- Private Sub Command2_Click()
- If MSess1.Logon = True Then
- MReci1.Clear
- MReci1.Action = 6
- MReci1.RecipientAddress = szAddress.Text
- MReci1.RecipientName = szAddress.Text
- MMsg1.Action = ACTION_NEW
- MMsg1.WorkingMsg = COMPOSE_MSG
- MReci1.Refresh
- MMsg1.Subject = szSubject
- MMsg1.NoteText = szNoteText
-
- MMsg1.Action = ACTION_SENDMSG
-
- If MMsg1.ErrorNum = 0 Then
- MsgBox "Message has been sent"
- Else
- MsgBox "Error Sending The Mail message"
- End If
- Else
- MsgBox "No Active Session available"
- End If
- End Sub
-